<template>
  <a-breadcrumb>
    <a-breadcrumb-item v-for="(item, index) in route.matched" :key="item.path">
      <a v-if="index !== route.matched.length - 1" :href="item.path">{{ item.meta.title}}</a>
      <span v-else>{{ item.meta.title}}</span>
    </a-breadcrumb-item>
  </a-breadcrumb>
</template>

<script lang="ts" setup>
import { useRoute } from 'vue-router'

const route = useRoute()
</script>